﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;

namespace Tetris
{
    public enum ShapeType
    {
        ShapeI,
        ShapeL,
        ShapeJ,
        ShapeT,
        ShapeS,
        ShapeZ,
        ShapeB
    }
    public class Block
    {
        public int x;
        public int y;
    }
    public class Shape
    {

        public Block b1 = new Block();
        public Block b2 = new Block();
        public Block b3 = new Block();
        public Block b4 = new Block();
        public List<Block> MyShape = new List<Block>();
        
        /*public Block Block1
        {
            get { return b1; }
        }
        public Block Block2
        {
            get { return b2; }
        }
        public Block Block3
        {
            get { return b3; }
        }
        public Block Block4
        {
            get { return b4; }
        }*/


        public void ShapeI()
        {
            b1.x = 0; b1.y = 0;
            b2.x = 1; b2.y = 0;
            b3.x = 2; b3.y = 0;
            b4.x = 3; b4.y = 0;

        }
        
        public void ShapeL()
        {
            b1.x = 0; b1.y = 0;
            b2.x = 1; b2.y = 0;
            b3.x = 2; b3.y = 0;
            b4.x = 2; b4.y = 1;
        }
        public void ShapeJ()
        {
            b1.x = 0; b1.y = 0;
            b2.x = 1; b2.y = 0;
            b3.x = 2; b3.y = 0;
            b4.x = 0; b4.y = 1;

        }

        public enum Angle
        {
            Pos1,
            Pos2,
            Pos3,
            Pos4
        }
        
        
    }
}
